<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>书架页面预览</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
            min-height: 100vh;
            padding-bottom: 20px;
        }

        .preview-note {
            background: #e3f2fd;
            padding: 15px;
            text-align: center;
            color: #1976d2;
            font-size: 14px;
            border-bottom: 1px solid #bbdefb;
        }

        .reading-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* 搜索栏样式 */
        .search-section {
            padding: 30px 0 20px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            margin-bottom: 20px;
        }

        .search-bar {
            display: flex;
            align-items: center;
            background: #f5f7fa;
            border-radius: 25px;
            padding: 15px 20px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
            max-width: 600px;
            margin: 0 auto;
        }

        .search-icon {
            width: 16px;
            height: 16px;
            margin-right: 10px;
            opacity: 0.6;
        }

        .search-input {
            flex: 1;
            border: none;
            outline: none;
            background: transparent;
            font-size: 16px;
            color: #3a3a3a;
        }

        /* 分类标签样式 */
        .category-section {
            background: #ffffff;
            padding: 20px 0;
            margin-bottom: 20px;
            overflow-x: auto;
        }

        .category-list {
            display: flex;
            gap: 15px;
            padding: 0 20px;
            min-width: max-content;
        }

        .category-item {
            padding: 10px 20px;
            border-radius: 20px;
            font-size: 14px;
            color: #909399;
            background: #f5f7fa;
            white-space: nowrap;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .category-item.active {
            color: #ffffff;
            background: #2979ff;
            box-shadow: 0 4px 16px rgba(41, 121, 255, 0.3);
        }

        /* 书架主体样式 */
        .bookshelf-section {
            padding: 40px 20px;
            background: #ffffff;
            border-radius: 16px;
            margin-bottom: 20px;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
        }

        .section-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 40px;
        }

        .section-title {
            font-size: 24px;
            font-weight: 600;
            color: #3a3a3a;
        }

        .section-actions {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .book-count {
            font-size: 14px;
            color: #909399;
        }

        .books-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
        }

        .book-card {
            background: #ffffff;
            border-radius: 16px;
            padding: 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .book-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        }

        .book-cover {
            position: relative;
            height: 180px;
            margin-bottom: 20px;
            perspective: 1000px;
        }

        .book-spine {
            position: absolute;
            left: 0;
            top: 0;
            width: 20px;
            height: 100%;
            border-radius: 4px 0 0 4px;
            transform: rotateY(-30deg) translateZ(-10px);
        }

        .book-cover-front {
            position: absolute;
            left: 10px;
            top: 0;
            right: 0;
            height: 100%;
            border-radius: 0 8px 8px 0;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
        }

        .book-title {
            font-size: 48px;
            font-weight: bold;
            color: #ffffff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .book-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: #e43d33;
            color: #ffffff;
            font-size: 12px;
            padding: 4px 12px;
            border-radius: 20px;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(228, 61, 51, 0.4);
        }

        .book-info {
            text-align: center;
        }

        .book-name {
            display: block;
            font-size: 18px;
            font-weight: 500;
            color: #3a3a3a;
            margin-bottom: 8px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .book-author {
            display: block;
            font-size: 14px;
            color: #909399;
            margin-bottom: 16px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .book-progress {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .progress-bar {
            flex: 1;
            height: 8px;
            background: #f0f0f0;
            border-radius: 4px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #2979ff 0%, #5c8dff 100%);
            border-radius: 4px;
            transition: width 0.3s ease;
        }

        .progress-text {
            font-size: 12px;
            color: #8f939c;
            font-weight: 500;
        }

        /* 推荐区域样式 */
        .recommend-section {
            padding: 40px 20px;
            background: #f8f9fa;
            border-radius: 24px 24px 0 0;
        }

        .recommend-scroll {
            overflow-x: auto;
        }

        .recommend-list {
            display: flex;
            gap: 24px;
            padding-bottom: 10px;
        }

        .recommend-book {
            flex-shrink: 0;
            width: 160px;
            text-align: center;
        }

        .recommend-cover {
            height: 200px;
            border-radius: 12px;
            margin-bottom: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .recommend-cover:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
        }

        .recommend-title {
            font-size: 40px;
            font-weight: bold;
            color: #ffffff;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .recommend-name {
            display: block;
            font-size: 14px;
            color: #6a6a6a;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .books-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 480px) {
            .books-grid {
                grid-template-columns: 1fr;
            }
        }

        /* 图标样式 */
        .icon {
            width: 18px;
            height: 18px;
            fill: currentColor;
        }
    </style>
</head>
<body>
    <div class="preview-note">
        📚 书架页面预览 - 这是uni-app项目的HTML预览版本
    </div>

    <div class="reading-container">
        <!-- 顶部搜索栏 -->
        <div class="search-section">
            <div class="search-bar">
                <svg class="search-icon" viewBox="0 0 24 24" fill="currentColor">
                    <path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>
                </svg>
                <input class="search-input" placeholder="搜索书籍、作者" />
            </div>
        </div>

        <!-- 分类标签 -->
        <div class="category-section">
            <div class="category-list">
                <div class="category-item active">全部</div>
                <div class="category-item">小说</div>
                <div class="category-item">文学</div>
                <div class="category-item">历史</div>
                <div class="category-item">科技</div>
                <div class="category-item">艺术</div>
            </div>
        </div>

        <!-- 书架主体 -->
        <div class="bookshelf-section">
            <div class="section-header">
                <div class="section-title">我的书架</div>
                <div class="section-actions">
                    <div class="book-count">共 6 本</div>
                    <svg class="icon" viewBox="0 0 24 24" fill="currentColor">
                        <path d="M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"/>
                    </svg>
                </div>
            </div>

            <!-- 书籍网格 -->
            <div class="books-grid">
                <div class="book-card">
                    <div class="book-cover">
                        <div class="book-spine" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)"></div>
                        <div class="book-cover-front" style="background: linear-gradient(135deg, #667eea 0%, #764ba2 100%)">
                            <div class="book-title">三</div>
                        </div>
                    </div>
                    <div class="book-info">
                        <div class="book-name">三体</div>
                        <div class="book-author">刘慈欣</div>
                        <div class="book-progress">
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 68%"></div>
                            </div>
                            <div class="progress-text">68%</div>
                        </div>
                    </div>
                </div>

                <div class="book-card">
                    <div class="book-cover">
                        <div class="book-spine" style="background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%)"></div>
                        <div class="book-cover-front" style="background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%)">
                            <div class="book-title">活</div>
                        </div>
                    </div>
                    <div class="book-info">
                        <div class="book-name">活着</div>
                        <div class="book-author">余华</div>
                        <div class="book-progress">
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 100%"></div>
                            </div>
                            <div class="progress-text">100%</div>
                        </div>
                    </div>
                </div>

                <div class="book-card">
                    <div class="book-cover">
                        <div class="book-spine" style="background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%)"></div>
                        <div class="book-cover-front" style="background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%)">
                            <div class="book-title">红</div>
                        </div>
                        <div class="book-badge">新</div>
                    </div>
                    <div class="book-info">
                        <div class="book-name">红楼梦</div>
                        <div class="book-author">曹雪芹</div>
                        <div class="book-progress">
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 32%"></div>
                            </div>
                            <div class="progress-text">32%</div>
                        </div>
                    </div>
                </div>

                <div class="book-card">
                    <div class="book-cover">
                        <div class="book-spine" style="background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)"></div>
                        <div class="book-cover-front" style="background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)">
                            <div class="book-title">百</div>
                        </div>
                    </div>
                    <div class="book-info">
                        <div class="book-name">百年孤独</div>
                        <div class="book-author">马尔克斯</div>
                        <div class="book-progress">
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 15%"></div>
                            </div>
                            <div class="progress-text">15%</div>
                        </div>
                    </div>
                </div>

                <div class="book-card">
                    <div class="book-cover">
                        <div class="book-spine" style="background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%)"></div>
                        <div class="book-cover-front" style="background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%)">
                            <div class="book-title">追</div>
                        </div>
                    </div>
                    <div class="book-info">
                        <div class="book-name">追风筝的人</div>
                        <div class="book-author">卡勒德·胡赛尼</div>
                        <div class="book-progress">
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 85%"></div>
                            </div>
                            <div class="progress-text">85%</div>
                        </div>
                    </div>
                </div>

                <div class="book-card">
                    <div class="book-cover">
                        <div class="book-spine" style="background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%)"></div>
                        <div class="book-cover-front" style="background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%)">
                            <div class="book-title">平</div>
                        </div>
                        <div class="book-badge">新</div>
                    </div>
                    <div class="book-info">
                        <div class="book-name">平凡的世界</div>
                        <div class="book-author">路遥</div>
                        <div class="book-progress">
                            <div class="progress-bar">
                                <div class="progress-fill" style="width: 45%"></div>
                            </div>
                            <div class="progress-text">45%</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 底部推荐区域 -->
        <div class="recommend-section">
            <div class="section-header">
                <div class="section-title">为你推荐</div>
                <div class="more-text" style="color: #2979ff; font-weight: 500;">更多 ></div>
            </div>
            <div class="recommend-scroll">
                <div class="recommend-list">
                    <div class="recommend-book">
                        <div class="recommend-cover" style="background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%)">
                            <div class="recommend-title">解</div>
                        </div>
                        <div class="recommend-name">解忧杂货店</div>
                    </div>
                    <div class="recommend-book">
                        <div class="recommend-cover" style="background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%)">
                            <div class="recommend-title">白</div>
                        </div>
                        <div class="recommend-name">白夜行</div>
                    </div>
                    <div class="recommend-book">
                        <div class="recommend-cover" style="background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%)">
                            <div class="recommend-title">人</div>
                        </div>
                        <div class="recommend-name">人间失格</div>
                    </div>
                    <div class="recommend-book">
                        <div class="recommend-cover" style="background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%)">
                            <div class="recommend-title">挪威</div>
                        </div>
                        <div class="recommend-name">挪威的森林</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>